$(function(){
	var depts = $("#depts");
	$.get("admin/department/department!bytype?bean.departmentType=Manufacture",function(data){

		var fopt = $("<option value=''>请选择部门...</option>");
		depts.append(fopt);
		
		for(var i=0;i<data.length;i++){
			var d = data[i];
			var opt = $("<option></option>");
			opt.val(d['id']);
			opt.text(d['name']);
			depts.append(opt);
		}
	});
	
	$("#queryBtn").bind("click",function(){
		var params = $("form").serialize();
		doPost("equipment/equipment!query",params);
	});
});